package com.cy.mall.dao.mapper.customer;

import com.cy.mall.model.vo.customer.CustomerMyInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.cy.mall.model.domain.customer.Customer;
import com.cy.mall.model.dto.customer.CustomerLoginDTO;
import com.cy.mall.model.dto.customer.ValidateBigDataResultDTO;
import com.cy.mall.model.dto.customer.ValidateFaceIdResultDTO;

import tk.mybatis.mapper.common.BaseMapper;

/**
 * CustomerMapper
 *
 * @author tanyilin
 *
 * @create 2019年2月25日 上午11:37:55
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

	/**
	 * 查询客户登录信息
	 * 
	 * @param mobile
	 * @return
	 */
	CustomerLoginDTO queryLogin(@Param("mobile") String mobile);

	/**
	 * 验证客户是否已完成人脸识别
	 * 
	 * @param customerId
	 * @return
	 */
	ValidateFaceIdResultDTO selectValidateFaceIdResultDTO(@Param("customerId") Long customerId);

	/**
	 * 查询客户大数据查询结果
	 * 
	 * @param customerId
	 * @return
	 */
	ValidateBigDataResultDTO selectValidateBigDataResultDTO(@Param("customerId") Long customerId);

	/**
	 * 前台-客户-我的页面信息
	 * @param customerId
	 * @return com.cy.mall.model.vo.customer.CustomerMyInfoVO
	 */
    CustomerMyInfoVO selectCustomerMyInfoVO(Long customerId);
}
